﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using FreeSql.DataAnnotations;
using Newtonsoft.Json;

namespace Zzcore.Model
{
    [Table(Name = "organizationinfo")]
    public class Organizationinfo
    {
        [Column(IsIdentity = true, IsPrimary = true, Name = "id")]
        [JsonProperty("id")]
        public long Id { get; set; }

        [Column(Name = "name")]
        [JsonProperty("name")]
        [Description("组织名称")]
        public string Name { get; set; }

        [Column(Name = "phone")]
        [JsonProperty("phone")]
        [Description("联系电话")]
        public string Phone { get; set; }

        [Column(Name = "address")]
        [Description("通讯地址")]
        [JsonProperty("address")]
        public string Address { get; set; }

        [Column(Name = "mail")]
        [JsonProperty("mail")]
        [Description("企业邮箱")]
        public string Mail { get; set; }

        [Column(Name = "website")]
        [JsonProperty("website")]
        [Description("企业官网")]
        public string Website { get; set; }

        [Column(Name = "logo")]
        [JsonProperty("logo")]
        [Description("企业Logo")]
        public string Logo { get; set; }

        [Column(Name = "created", ServerTime = DateTimeKind.Local, CanUpdate = false, DbType = "datetime(0)")]
        [JsonProperty("created")]
        public DateTime CreateTime { get; set; }

        [Column(Name= "updated", ServerTime = DateTimeKind.Local, DbType = "datetime(0)")]
        [JsonProperty("updated")]
        public DateTime UpdateTime { get; set; }
    }
}
